package com.yeyks.app.controller.base.other;


import com.yeyks.common.ajax.AjaxResponseBody;
import com.yeyks.other.pojo.param.RecruitmentOfCityPartnersAddParam;
import com.yeyks.other.service.RecruitmentOfCityPartnersService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 城市合伙人大招募 前端控制器
 * </p>
 *
 * @author yun
 * @since 2020-02-24
 */
@Api(tags = "城市合伙人", description = "城市合伙人")
@RestController
@RequestMapping("/app/other/recruitmentOfCityPartners")
public class RecruitmentOfCityPartnersController {

    @Autowired
    private RecruitmentOfCityPartnersService recruitmentOfCityPartnersService;

    @ApiOperation("添加城市合伙人信息v4.3.0")
    @PostMapping("/add")
    @ResponseBody
    public AjaxResponseBody<Boolean> add(@Validated RecruitmentOfCityPartnersAddParam param) {
        recruitmentOfCityPartnersService.add(param);
        return AjaxResponseBody.success();
    }

}
